<div class="span3">
    <div class="well sidebar-nav">
        <ul class="nav nav-list">
            <li class="nav-header"><?php echo __d('cake', 'Actions'); ?></li>
        <li><?php echo $this->Html->link(__('Edit Slider'), array('action' => 'edit', $slider['Slider']['id'])); ?> </li>
        <li><?php echo $this->Form->postLink(__('Delete Slider'), array('action' => 'delete', $slider['Slider']['id']), null, __('Are you sure you want to delete # %s?', $slider['Slider']['id'])); ?> </li>
        <li><?php echo $this->Html->link(__('List Sliders'), array('action' => 'index')); ?> </li>
        <li><?php echo $this->Html->link(__('New Slider'), array('action' => 'add')); ?> </li>
        </ul>
    </div>
</div>

<div class="span9">
    <?php echo $this->Session->flash(); ?>
    <div class="page-header">
        <h1><?php  echo __('Slider'); ?></h1>
    </div>
    <dl>
        <dt><?php echo __('Id'); ?></dt>
        <dd>
            <?php echo h($slider['Slider']['id']); ?>
            &nbsp;
        </dd>
        <dt><?php echo __('Nombre'); ?></dt>
        <dd>
            <?php echo h($slider['Slider']['filename']); ?>
            &nbsp;
        </dd>
        <dt><?php echo __('Imagen'); ?></dt>
        <dd>
             <?php 
            $img = $this->Html->url(h($slider['Slider']['filepath']), true );
            $this->Fancybox->setProperties( array( 
                'class' => 'fancybox3',
                'className' => 'fancybox.image',
                'title'=> h($slider['Slider']['filename']),
                'rel' => 'gallery1'
                )
            );  
            $this->Fancybox->setPreviewContent('Ver imagen');
            $this->Fancybox->setMainContent($img); 
            echo $this->Fancybox->output();            
            ?>
        </dd>
        <dt><?php echo __('Link'); ?></dt>
        <dd>
            <?php echo h($slider['Slider']['link']); ?>
            &nbsp;
        </dd>
        <dt><?php echo __('Alt'); ?></dt>
        <dd>
            <?php echo h($slider['Slider']['alt']); ?>
            &nbsp;
        </dd>
        <dt><?php echo __('Activa'); ?></dt>
        <dd>
            <?php echo h($slider['Slider']['is_active']); ?>
            &nbsp;
        </dd>
    </dl>
</div>

